import { createBrowserRouter } from 'react-router-dom'
import IndexPage from '../pages/index'
import LoginPage from '../pages/login'
import CoursePage from '../pages/course'
import RegisterPage from '../pages/register'
export const  router = createBrowserRouter([
    {
        path:'/',
        element:<IndexPage/>,
        children:[
            {
                path:'/login',
                element:<LoginPage/>,
            },
            {
                path:'/course',
                element:<CoursePage/>,
            },
            {
                path:'/register',
                element:<RegisterPage/>,
            }
        ]
    }
])